package com.kgc.constant;

/**
 * @Author：周申宇 <p>
 * @Date:2021/6/16 15:02
 * <p>
 * @Decription: 微信支付的常量类
 */
public class WxpayConstant {

    /**
     * 随机字符串的小写的,大写，数字
     */
    public static final String SYMBOLS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

    /**
     * 系统订单统一前缀标识
     */
    public static final String WXPAY_OREDER_PREFIX = "T";

    /**
     * 微信统一下单签名方式: MD5
     */
    public static final String WXPAY_SIGN_TYPE_MD5 = "MD5";
    /**
     * 系统字符集编码
     */
    public static final String WXPAY_FIELD_ECODING_UTF8 = "utf-8";

    /**
     * 微信统一下单签名方式: HMACSHA256
     */
    public static final String WXPAY_SIGN_TYPE_HMACSHA256 = "HMACSHA256";

    /**
     * 微信统一下单标识：sign
     */
    public static final String FIELD_SIGN = "sign";

    /**
     * 微信统一下单返回结果码
     */
    public static final String WXPAY_RETURN_SUCCESS = "SUCCESS";
    /**
     * 微信统一下单返回结果码
     */
    public static final String WXPAY_RETURN_OK = "OK";

    /**
     * 同步返回结果,回调处理成功
     */
    public static final String WXPAY_RESPONSE_SUCCESS = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
    public static final String WXPAY_RESPONSE_FILE = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[no]]></return_msg></xml>";

    public static final String WXPAY_TRADE_TYPE = "trade_type";
    public static final String WXPAY_PREPAY_ID = "prepay_id";
    public static final String WXPAY_CODE_URL = "code_url";
    public static final String WXPAY_RETURN_CODE = "return_code";
    public static final String WXPAY_RESULT_CODE = "result_code";

}
